<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>控制台</title>
<link href="../tablecloth/tablecloth.css" rel="stylesheet" type="text/css" media="screen" />
<script type="text/javascript" src="../Js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="../Js/haidao.offcial.general.js"></script>
<script type="text/javascript" src="../Js/select.js"></script>
<script type="text/javascript" src="../Js/haidao.validate.js"></script>
<style>
.del {
	background-color: #C00;
	color: #FFF;
	border-radius: 5px;
	line-height: 20px !important;
	padding: 1px 6px;
}
</style>
</head>

<body>
	<div>
		<div class="view-sidebar">
			<div class="sidebar-content" id="sidebar"></div>
		</div>
		<div class="view-product">
			<div class="message-manage">
				<div class="manage-record margin-lr">
					<div class="clear"></div>
					<div class="offcial-table margin-top clearfix">
						<div class="tr-th clearfix">
							<table>
								<tr>
									<td align="center"><h3>全称</h3></td>
									<td align="center"><h3>简称</h3></td>
								</tr>
								<tr>
									<td align="right"><span class="redtxt">渠道一级： </span><select
										id="channelOne" name="channelOne"
										onchange="initTwo(this.value);">
											<option value='0'>请选择</option>
											<c:forEach items="${channelOne}" var="u">
												<option value="${u.generalizeId}">${u.channelname}</option>
											</c:forEach>
									</select></td>

									<td align="center"><input type="text"
										name="channelOneShort" id="channelOneShort" value="无"
										disabled="disabled"></td>

								</tr>
								<tr>
									<td align="right"><span class="redtxt">渠道二级： </span>
									<select id="channelTwo" name="channelTwo" onchange="initThree(this.value);">
											<option value="0">请选择</option>
									</select></td>

									<td align="center"><input type="text" name="channelTwoShort" id="channelTwoShort" value="无" disabled="disabled"></td>
								</tr>
								<tr>
									<td align="right"><span class="redtxt">渠道三级： </span><select
										id="channelThree" name="channelThree"
										onchange="initFour(this.value);">
											<option value="0">请选择</option>
									</select></td>

									<td align="center"><input type="text"
										name="channelThreeShort" id="channelThreeShort" value="无"
										disabled="disabled"></td>
								</tr>
								<tr>
									<td align="right"><span class="redtxt">渠道四级： </span><select
										id="channelFour" name="channelFour"
										onchange="initFive(this.value);">
											<option value="0">请选择</option>
									</select></td>

									<td align="center"><input type="text"
										name="channelFourShort" id="channelFourShort" value="无"
										disabled="disabled"></td>
								</tr>
								<tr>
									<td align="right"><span class="redtxt">渠道五级： </span><select
										id="channelFive" name="channelFive"
										onchange="initwu(this.value);">
											<option value="0">请选择</option>
									</select></td>

									<td align="center"><input type="text"
										name="channelFiveShort" id="channelFiveShort" value="无"
										disabled="disabled"></td>
								</tr>

								<tr>
									<td align="right"><span class="redtxt">渠道链接： </span> <input
										type="text" name="linkSite" id="linkSite" value="无" readonly></td>
									<td></td>
								</tr>
								<tr>
									<td align="right"><span class="redtxt">下载连接： </span> <input
										type="text" name="downloadLink" id="downloadLink" value="无"
										readonly></td>
										<td></td>
								</tr>
							</table>

							<input type="hidden" id="ycwbk" value="" />
							<table>
								<tr align="center">
									<td align="center"><input type="button" value="创建"
										onclick="add(ycwbk.value)"> <input type="button" value="修改"
										onclick="update(ycwbk.value)"> <input type="button" value="重置"
										onclick="icancel()"></td>
								<tr>
							</table>
							<div class="view-sidebar">
								<div class="sidebar-content" id="sidebarAdd"></div>
							</div>
						</div>
					</div>
				</div>
				
			</div>
		</div>
	</div>
	<script type="text/javascript" src="../Js/channel/channelSelect.js"></script>
</body>
<script type="text/javascript">
	//获取异常参数弹出提示
	var verifys = '${verify}';
	if(verifys!=''){
		 alert(verifys);
	}
</script>
</html>